TARGET = timer
CC = gcc
STRIP = strip

SOURCE = main.c \
	 timer.c \

OBJS = $(SOURCE:%.c=obj/%.o)

$(TARGET): clean $(OBJS)
	$(CC) -o $@ $(OBJS)
	$(STRIP) $(TARGET)

obj/%.o:%.c
	@mkdir -p obj
	$(CC) -c $< -o $@

clean:
	rm -rf obj $(OBJS) $(TARGET)
